package com.study.bob.dependencyinjection.common;

/**
 * Created by bob on 2016/4/28.
 */
public class MyApplication {
   /* private MessageService es = new MessageService();*/

    public void sendProcessMessage(String content,String receiver){
        this.es.sendEmail(content, receiver);
    }


    private MessageService es = null;

    //EmailService作为构造方法的入参
    public MyApplication(MessageService es){
        this.es = es;
    }


}
